<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:icecore="http://www.icefaces.org/icefaces/core"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title><h:form><h:outputText>Übersicht Übungsgruppen</h:outputText></h:form></title>
    </h:head>
    <h:body>
        <ui:composition template="WEB-INF/templates/lecture.xhtml">
            <ui:define name="content">
                <ice:outputText value="Übungsgruppen" />
                <br />
                <br />
                <ice:panelSeries value="#{viewExerciseGroupsBean.ownStudents}"
                                 var="line">
                    <ice:outputText value="#{line}" />
                    <br />
                </ice:panelSeries>
                <br />
                <ice:outputText value="Ihre Übungsgruppe: #{viewExerciseGroupsBean.group()}" />
                
                <ice:panelSeries value="#{lectureBean.lecture.info.exerciseGroups}"
                               var="row" >
                    <ice:outputText value="#{row.name}"
                                    rendered="#{!viewExerciseGroupsBean.isInGroup(row)}"/>
                    <ice:outputText value="#{row.name} (eigene Gruppe)"
                                    rendered="#{viewExerciseGroupsBean.isInGroup(row)}" />
                    <br />
                    <ice:outputText value="Tutor(en):" />
                    <ice:panelSeries value="#{row.leaders}"
                                     var="l">
                        <ice:outputLink value="mailto:#{userAdminBean.getUser(l).email}">
                            <ice:outputText value="#{l}" />
                        </ice:outputLink>
                    </ice:panelSeries>
                </ice:panelSeries>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
